package com.example.module_service.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.module_service.R
import com.example.module_service.entity.MerchantEntity
import com.example.module_service.entity.MerchantEntityItem

class MerchantAdapter :BaseQuickAdapter<MerchantEntityItem,BaseViewHolder>(R.layout.item_merchant){
    override fun convert(holder: BaseViewHolder, item: MerchantEntityItem) {
        holder.setText(R.id.merchant_name,item.name)
        holder.setText(R.id.merchant_type,item.industryType)
        holder.setText(R.id.merchant_message,item.stockName)
        holder.setText(R.id.merchant_address,item.address)
    }
}